package com.pattern.strategy.typesource;

import com.pattern.strategy.promotion.IPromotionStrategy;
import com.pattern.strategy.promotion.PromotionStrategyFactory;

/**
 * Created by wangzhengpeng
 */
public class Test {
    public static void main(String[] args) {
        TypeStrategyFactory.getPromotionKeys();
        String promotionKey = "type1source1";

        IPromotionStrategy promotionStrategy =
                TypeStrategyFactory.getPromotionStrategy(promotionKey);
        promotionStrategy.doPromotion();
    }
}
